﻿<UserControl x:Class="SoftSource.Resources.Master"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:SoftSource.Resources"
             xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             d:DesignWidth="640"
             d:DesignHeight="480">

    <Grid x:Name="LayoutRoot"
          Style="{StaticResource LayoutRootGridStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>

        <Grid Style="{StaticResource NavigationOuterGridStyle}">
            <Grid x:Name="NavigationGrid"
                  Style="{StaticResource NavigationGridStyle}">

                <Grid.Background>
                    <SolidColorBrush Color="{StaticResource SoftSourceRed}" />
                </Grid.Background>

                <Border x:Name="BrandingBorder"
                        Style="{StaticResource BrandingBorderStyle}">
                    <Button Background="{x:Null}"
                            BorderBrush="{x:Null}"
                            Foreground="{x:Null}"
                            Style="{StaticResource ClickZoneButton}"
                            Click="Branding_Click"
                            Cursor="Hand">
                        <StackPanel x:Name="BrandingStackPanel"
                                    Style="{StaticResource BrandingStackPanelStyle}">

                            <controlsToolkit:Viewbox VerticalAlignment="Center"
                                                     Margin="8,4">
                                <ContentControl d:LayoutOverrides="Width"
                                                Style="{StaticResource SoftSourceLogoWhiteBox}" />
                            </controlsToolkit:Viewbox>
                            <TextBlock x:Name="ApplicationNameTextBlock"
                                       Style="{StaticResource ApplicationNameStyle}" />

                        </StackPanel>
                    </Button>
                </Border>

            </Grid>
            <Border x:Name="InfoBar"
                    Height="21"
                    Margin="0,42,0,0"
                    VerticalAlignment="Top">
                <Border.Background>
                    <SolidColorBrush Color="{StaticResource SoftSourceLightGray}" />
                </Border.Background>
            </Border>
        </Grid>
        <Border x:Name="ContentBorder"
                Grid.Row="1"
                Margin="25,0" />

        <Grid x:Name="ContactBar"
              Grid.Row="2">
            <Grid.Background>
                <SolidColorBrush Color="{StaticResource SoftSourceDarkGray}" />
            </Grid.Background>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.644*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="CopyrightText"
                       Grid.Column="3"
                       VerticalAlignment="Center"
                       Margin="4"
                       Foreground="White" />
            <HyperlinkButton x:Name="PrivacyStatementHyperlink"
                             Content="Privacy Statement"
                             d:LayoutOverrides="Height"
                             Grid.Column="2"
                             TargetName="_blank"
                             VerticalAlignment="Center"
                             Margin="4"
                             Foreground="White"
                             Style="{StaticResource SimpleHyperlinkButtonStyle}" />
            <HyperlinkButton x:Name="ContactUsHyperlink"
                             Content="Contact Us"
                             d:LayoutOverrides="Height"
                             VerticalAlignment="Center"
                             Grid.Column="1"
                             TargetName="_blank"
                             Margin="4"
                             Foreground="White"
                             Style="{StaticResource SimpleHyperlinkButtonStyle}" />
        </Grid>
    </Grid>
</UserControl>